package com.example.lending.Model;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity
public class Book {
    @PrimaryKey(autoGenerate = true)
    int id;
    @ColumnInfo()
    int number; //是否借阅
    @ColumnInfo()
    String type;// 类别
    @ColumnInfo()
    String price;//价格
    @ColumnInfo()
    String public_com;//
    @ColumnInfo()
    String count; //数量
    @ColumnInfo(name="name")
    String name;//书籍名
    @ColumnInfo()
    String user;//借书人
    @ColumnInfo()
    String introduce;//介绍
    @ColumnInfo()
    int look_number;//游览量
    @ColumnInfo()
    int brow_number;//借阅编号
    @ColumnInfo()
    int star_number;//为了能够增加相关图书，所以我们需要增加一个功能，即图书的属性，按照图书属性分成1~10

    public Book() {
        number=0;
        user="";
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getPublic_com() {
        return public_com;
    }

    public void setPublic_com(String public_com) {
        this.public_com = public_com;
    }

    public String getCount() {
        return count;
    }

    public void setCount(String count) {
        this.count = count;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String cover) {
        this.user = cover;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public int getLook_number() {
        return look_number;
    }

    public void setLook_number(int look_number) {
        this.look_number = look_number;
    }

    public int getBrow_number() {
        return brow_number;
    }

    public void setBrow_number(int brow_number) {
        this.brow_number = brow_number;
    }
    public int getStar_number() {
        return star_number;
    }

    public void setStar_number(int star_number) {
        this.star_number = star_number;
    }
}
